package com.hmkj.core.model.account;


import com.hmkj.core.po.account.Account;
import com.hmkj.core.po.user.User;
import com.xiaoleilu.hutool.util.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * ......................我佛慈悲......................
 * ......................_oo0oo_.......................
 * .....................o8888888o......................
 * .....................88" . "88......................
 * .....................(| -_- |)......................
 * .....................0\  =  /0......................
 * ...................___/`---'\___....................
 * ..................' \\|     |// '...................
 * ................/ \\|||  :  |||// \.................
 * .............../ _||||| -卍-|||||- \................
 * ..............|   | \\\  -  /// |   |...............
 * ..............| \_|  ''\---/''  |_/ |...............
 * ..............\  .-\__  '-'  ___/-. /...............
 * ............___'. .'  /--.--\  `. .'___.............
 * .........."" '<  `.___\_<|>_/___.' >' ""............
 * ........| | :  `- \`.;`\ _ /`;.`/ - ` : | |.........
 * ........\  \ `_.   \_ __\ /__ _/   .-` /  /.........
 * ....=====`-.____`.___ \_____/___.-`___.-'=====......
 * ......................`=---='.......................
 * ....................................................
 * .................佛祖开光 ,永无BUG...................
 */
@Data
public class AccountModel extends Account {

    private User u;

    /**
     * 最低充值金额
     */
    @ApiModelProperty(value = "最低充值金额")
    private BigDecimal rechargeMin;
    /**
     * 最高充值金额
     */
    @ApiModelProperty(value = "最高充值金额")
    private BigDecimal rechargeMax;

    /**
     * 最低提现金额
     */
    @ApiModelProperty(value = "最低提现金额")
    private BigDecimal cashMin;

    /**
     * 最高提现金额
     */
    @ApiModelProperty(value = "最高充值金额")
    private BigDecimal cashMax;

    /**
     * 提现手续费率
     */
    @ApiModelProperty(value = "提现手续费率")
    private BigDecimal cashFeeRatio;

    /**
     * 提现手续费最小值
     */
    @ApiModelProperty(value = "提现手续费最小值")
    private BigDecimal cashFeeMin;

    /**
     * 用户累计入金额
     */
    @ApiModelProperty(value = "用户累计入金额")
    private BigDecimal rechargeSum;

    /**
     * 用户累计出金额
     */
    @ApiModelProperty(value = "用户累计出金额")
    private BigDecimal cashSum;

    /**
     * 用户累计推广金额
     */
    @ApiModelProperty(value = "用户累计推广金额")
    private BigDecimal rewardSum;

    public static AccountModel formatEntity(Account account) {
        AccountModel model = new AccountModel();
        BeanUtil.copyProperties(account, model);
        return model;
    }

}
